package com.iot.comprehensive.face.service.impl;

import com.iot.comprehensive.face.dao.ImgPathDao;
import com.iot.comprehensive.face.model.ImgPath;
import com.iot.comprehensive.face.service.ImgPathService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 朱泽玉
 * @Create 2021/7/4 15:07
 * @Description
 * @Modified By:
 */
@Service
public class ImgPathServiceImpl implements ImgPathService {
    final ImgPathDao imgPathDao;

    public ImgPathServiceImpl(ImgPathDao imgPathDao) {
        this.imgPathDao = imgPathDao;
    }

    @Override
    public List<ImgPath> findAll() {
        return imgPathDao.findAll();
    }

    @Override
    public void del() {
        imgPathDao.deleteAll();
    }

    @Override
    public void add(ImgPath imgPath) {
        imgPathDao.save(imgPath);
    }
}
